﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BMSQ.Admin.FeedBack
{
    public partial class Show : System.Web.UI.Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    string FB_ID = strid;
                    ShowInfo(FB_ID);
                }
            }
        }

        private void ShowInfo(string FB_ID)
        {
            BLL.FeedBack bll = new BLL.FeedBack();
            Model.FeedBack model = bll.GetModel(FB_ID);
            this.lblFB_ID.Text = model.FB_ID;
            this.lblUser_ID.Text = model.User_ID;
            this.lblContext.Text = model.Context;
            this.lblFB_Date.Text = model.FB_Date.ToString();
        }
    }
}